@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ::::: menu/menuitem ::::: */

menu,
menuitem{
-moz-box-align:center;
color:#2a2a2b;
font:menu;
list-style-image:none;
-moz-image-region:auto}

menuitem[default="true"]{
font-weight:bold}

menu[disabled="true"],
menuitem[disabled="true"],
menu[_moz-menuactive="true"][disabled="true"],
menuitem[_moz-menuactive="true"][disabled="true"]{
color:#a7a7a7}

@media all and (-moz-windows-classic){
menu[disabled="true"],
menubar > menu[disabled="true"][_moz-menuactive="true"],
menuitem[disabled="true"]{
color:#a7a7a7}}

menuitem.spell-suggestion{
font-weight:bold}

/* ..... internal content .... */

.menu-accel,.menu-iconic-accel,
.menu-text,.menu-iconic-text{
margin:0 2px!important;
padding:0;
color:inherit}

.menu-text{
-moz-margin-start:26px!important}

.menu-iconic-text{
font-weight:inherit;
-moz-margin-start:1px!important}

.menu-description{
font-style:italic;
-moz-margin-start:1ex!important}

.menu-accel,.menu-iconic-accel{
-moz-margin-start:5px!important;
-moz-margin-end:17px!important}

.menu-iconic-left,
.menu-iconic-icon{
width:16px;
height:16px}

menu.menu-iconic > .menu-iconic-left,
menuitem.menuitem-iconic > .menu-iconic-left{
-moz-appearance:none;
padding-top:2px;
-moz-margin-start:4px;
-moz-margin-end:5px}

/* ..... menu arrow box ..... */

.menu-right{
-moz-appearance:none;
-moz-margin-end:6px;
-moz-margin-start:0;
margin-top:0;
margin-bottom:0;
list-style-image:url("chrome://global/skin/menu/menu-right.png")}

.menu-right[_moz-menuactive="true"]:not([disabled="true"]){
list-style-image:url("chrome://global/skin/menu/menu-right-hover.png")}

/* ::::: menu/menuitems in menubar ::::: */

menubar > menu {
border:3px solid transparent;
-moz-border-radius:4px}

menubar > menu[_moz-menuactive="true"]:not([disabled="true"]){
background:#f6faff;
-moz-border-top-colors:#eef4fb #cad6e5 #f6f9fe;
-moz-border-right-colors:#eef4fb #cad6e5 #f0f5fc;
-moz-border-bottom-colors:#eef4fb #cad6e5 #eff5fc;
-moz-border-left-colors:#eef4fb #cad6e5 #f5f9fe}

menubar > menu[_moz-menuactive="true"][open="true"]{
background:#f3f6f9;
-moz-border-top-colors:#f6faff #c7cdd2 #e8ebee;
-moz-border-right-colors:#f6faff #cdd2d7 #f8fbfe;
-moz-border-bottom-colors:#f6faff #c7cdd2 #f8fbfe;
-moz-border-left-colors:#f6faff #c7cdd2 #e8ebee}

menubar > menu[_moz-menuactive="true"][disabled="true"]{
background:none}

/* ..... internal content .... */

.menubar-left{
color:inherit}

.menubar-text{
margin:1px 6px 2px 6px!important;
color:inherit}

/* ::::: menu/menuitems in popups ::::: */

menupopup > menu,
popup > menu,
menupopup > menuitem,
popup > menuitem{
max-width:42em;
padding:3px}

menupopup > menu[_moz-menuactive="true"],
menupopup > menuitem[_moz-menuactive="true"],
popup > menu[_moz-menuactive="true"],
popup > menuitem[_moz-menuactive="true"]{
background:#3399ff}

menupopup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-text,
menupopup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-text,
popup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-text,
popup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-text,
menupopup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-text,
menupopup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-text,
popup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-text,
popup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-text,
menupopup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-accel-container > .menu-accel,
menupopup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-accel-container > .menu-accel,
menupopup > menu[_moz-menuactive="true"]:not([disabled="true"]) > .menu-accel-container > .menu-iconic-accel,
menupopup > menuitem[_moz-menuactive="true"]:not([disabled="true"]) > .menu-accel-container > .menu-iconic-accel{
color:#fff}

menupopup > menu[_moz-menuactive="true"][disabled="true"],
menupopup > menuitem[_moz-menuactive="true"][disabled="true"],
popup > menu[_moz-menuactive="true"][disabled="true"],
popup > menuitem[_moz-menuactive="true"][disabled="true"]{
background:none}

/* ::::: menu/menuitems in menulist popups ::::: */

.menulist-menupopup > menuitem,
menulist > menupopup > menuitem,
.menulist-menupopup > menu,
menulist > menupopup > menu{
-moz-appearance:none;
border:1px solid transparent;
padding-top:1px;
-moz-padding-end:30px;
padding-bottom:1px;
-moz-padding-start:5px;
max-width:none;
font: message-box;
color:#2a2a2b}

.menulist-menupopup > menuitem > .menu-iconic-left,
menulist > menupopup > menuitem > .menu-iconic-left,
.menulist-menupopup > menu > .menu-iconic-left,
menulist > menupopup > menu > .menu-iconic-left{
display:none;
padding-top:0}

.menulist-menupopup > menuitem > label,
menulist > menupopup > menuitem > label,
.menulist-menupopup > menu > label,
menulist > menupopup > menu > label{
padding-top:0;
padding-bottom:0}

menulist > menupopup > menuitem[_moz-menuactive="true"]{
}

menulist > menupopup > menuitem[_moz-menuactive="true"][disabled="true"]{
color:#a7a7a7}

menulist > menupopup > menuitem > .menu-iconic-text {
margin:0!important}

/* ::::: checkbox and radio menuitems ::::: */

menuitem[type="checkbox"]{
-moz-appearance:none}

menuitem[type="checkbox"][checked="true"] > .menu-iconic-left{
-moz-appearance:none;
background-image:url("chrome://global/skin/menu/menu-check.png");
padding-top:0;
-moz-margin-start:4px!important;
-moz-margin-end:5px!important}

menuitem[type="checkbox"][checked="true"]:hover > .menu-iconic-left{
background-image:url("chrome://global/skin/menu/menu-check-hover.png")}

menuitem[type="radio"]{
-moz-appearance:none}

menuitem[type="radio"][checked="true"] > .menu-iconic-left{
-moz-appearance:none;
background-image:url("chrome://global/skin/menu/menu-radio.png");
padding-top:0}

menuitem[type="radio"][checked="true"]:hover > .menu-iconic-left{
background-image:url("chrome://global/skin/menu/menu-radio-hover.png")}

menuitem[type="radio"] > .menu-iconic-left,
menuitem[type="checkbox"] > .menu-iconic-left{
-moz-margin-start:4px!important;
-moz-margin-end:5px!important}

menuitem[type="checkbox"] > .menu-iconic-left > .menu-iconic-icon,
menuitem[checked="true"] > .menu-iconic-left > .menu-iconic-icon,
menuitem[type="radio"] > .menu-iconic-left > .menu-iconic-icon{
display:none}

/* ::::: menuseparator ::::: */

menuseparator{
-moz-appearance:none;
height:2px;
padding:0;
margin:4px 1px 3px 26px;
border-top:1px solid rgba(0,0,0,.2)}

menulist > menupopup > menuseparator,
.menulist-menupopup > menuseparator{
padding:6px 0 5px 0;
border-top:1px solid rgba(0,0,0,.2)}

/* ::::: autocomplete ::::: */

.autocomplete-history-popup > menuitem{
max-width:none!important;
font:message-box}

/* ::::: tree column picker ::::: */

.treecell-popupcell-menu{
-moz-margin-start:-2px;
list-style-image:url("chrome://global/skin/columnselect.gif");
-moz-image-region:auto}